<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>C++ Web Framework: HttpCookie Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">C++ Web Framework
   &#160;<span id="projectnumber">3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_http_cookie-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HttpCookie Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class represents a HTTP Cookie.  
 <a href="class_http_cookie.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="httpcookie_8h_source.html">httpcookie.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a728bef99b74d352b1762cc98e67cc93c"><td class="memItemLeft" align="right" valign="top"><a id="a728bef99b74d352b1762cc98e67cc93c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a728bef99b74d352b1762cc98e67cc93c">HttpCookie</a> ()=default</td></tr>
<tr class="memdesc:a728bef99b74d352b1762cc98e67cc93c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the cookie's default constructor. <br /></td></tr>
<tr class="separator:a728bef99b74d352b1762cc98e67cc93c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb0f2cb5f7e8ef2fc7503663e29941c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#aeb0f2cb5f7e8ef2fc7503663e29941c4">HttpCookie</a> (const QByteArray &amp;source)</td></tr>
<tr class="separator:aeb0f2cb5f7e8ef2fc7503663e29941c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2037d1e3f9a6f65f0f3575df1cfcc200"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a2037d1e3f9a6f65f0f3575df1cfcc200">HttpCookie</a> (const QByteArray &amp;name, const QByteArray &amp;value)</td></tr>
<tr class="memdesc:a2037d1e3f9a6f65f0f3575df1cfcc200"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is an overloaded constructor that receives a cookie's name and value.  <a href="#a2037d1e3f9a6f65f0f3575df1cfcc200">More...</a><br /></td></tr>
<tr class="separator:a2037d1e3f9a6f65f0f3575df1cfcc200"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef937847dbebf7290e94b94afbb8f9a1"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#aef937847dbebf7290e94b94afbb8f9a1">toByteArray</a> () const</td></tr>
<tr class="separator:aef937847dbebf7290e94b94afbb8f9a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf6c25aa3654581007514fb8eb05ce7e"><td class="memItemLeft" align="right" valign="top"><a id="abf6c25aa3654581007514fb8eb05ce7e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#abf6c25aa3654581007514fb8eb05ce7e">setName</a> (const QByteArray &amp;value) noexcept</td></tr>
<tr class="memdesc:abf6c25aa3654581007514fb8eb05ce7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">setName <br /></td></tr>
<tr class="separator:abf6c25aa3654581007514fb8eb05ce7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bb2be880561c06f961cda75ed200601"><td class="memItemLeft" align="right" valign="top"><a id="a7bb2be880561c06f961cda75ed200601"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a7bb2be880561c06f961cda75ed200601">setValue</a> (const QByteArray &amp;value) noexcept</td></tr>
<tr class="memdesc:a7bb2be880561c06f961cda75ed200601"><td class="mdescLeft">&#160;</td><td class="mdescRight">setValue <br /></td></tr>
<tr class="separator:a7bb2be880561c06f961cda75ed200601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a728428f4220ba6678fdbfc225f65ab89"><td class="memItemLeft" align="right" valign="top"><a id="a728428f4220ba6678fdbfc225f65ab89"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a728428f4220ba6678fdbfc225f65ab89">setComment</a> (const QByteArray &amp;value) noexcept</td></tr>
<tr class="memdesc:a728428f4220ba6678fdbfc225f65ab89"><td class="mdescLeft">&#160;</td><td class="mdescRight">setComment <br /></td></tr>
<tr class="separator:a728428f4220ba6678fdbfc225f65ab89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00a6d505032b46606cbe6e573977f686"><td class="memItemLeft" align="right" valign="top"><a id="a00a6d505032b46606cbe6e573977f686"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a00a6d505032b46606cbe6e573977f686">setDomain</a> (const QByteArray &amp;value) noexcept</td></tr>
<tr class="memdesc:a00a6d505032b46606cbe6e573977f686"><td class="mdescLeft">&#160;</td><td class="mdescRight">setDomain <br /></td></tr>
<tr class="separator:a00a6d505032b46606cbe6e573977f686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a829662d2cc5a445c718217c2651a31ea"><td class="memItemLeft" align="right" valign="top"><a id="a829662d2cc5a445c718217c2651a31ea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a829662d2cc5a445c718217c2651a31ea">setMaxAge</a> (int value) noexcept</td></tr>
<tr class="memdesc:a829662d2cc5a445c718217c2651a31ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">setMaxAge <br /></td></tr>
<tr class="separator:a829662d2cc5a445c718217c2651a31ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdb116a430353e45a95435d8debd5632"><td class="memItemLeft" align="right" valign="top"><a id="acdb116a430353e45a95435d8debd5632"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#acdb116a430353e45a95435d8debd5632">setPath</a> (const QByteArray &amp;value) noexcept</td></tr>
<tr class="memdesc:acdb116a430353e45a95435d8debd5632"><td class="mdescLeft">&#160;</td><td class="mdescRight">setPath <br /></td></tr>
<tr class="separator:acdb116a430353e45a95435d8debd5632"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1caa7eca962c497e765c46523d4747e"><td class="memItemLeft" align="right" valign="top"><a id="ab1caa7eca962c497e765c46523d4747e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#ab1caa7eca962c497e765c46523d4747e">setSecure</a> (bool value) noexcept</td></tr>
<tr class="memdesc:ab1caa7eca962c497e765c46523d4747e"><td class="mdescLeft">&#160;</td><td class="mdescRight">setSecure <br /></td></tr>
<tr class="separator:ab1caa7eca962c497e765c46523d4747e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3370987b4bce5447598d1014c0d0f3b"><td class="memItemLeft" align="right" valign="top"><a id="ad3370987b4bce5447598d1014c0d0f3b"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#ad3370987b4bce5447598d1014c0d0f3b">getName</a> () const noexcept</td></tr>
<tr class="memdesc:ad3370987b4bce5447598d1014c0d0f3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">getName <br /></td></tr>
<tr class="separator:ad3370987b4bce5447598d1014c0d0f3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accaa975ced5c52bb8d5f4057a6bfa08d"><td class="memItemLeft" align="right" valign="top"><a id="accaa975ced5c52bb8d5f4057a6bfa08d"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#accaa975ced5c52bb8d5f4057a6bfa08d">getValue</a> () const noexcept</td></tr>
<tr class="memdesc:accaa975ced5c52bb8d5f4057a6bfa08d"><td class="mdescLeft">&#160;</td><td class="mdescRight">getValue <br /></td></tr>
<tr class="separator:accaa975ced5c52bb8d5f4057a6bfa08d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76890b2f2990c4b6eff5ab34957362ab"><td class="memItemLeft" align="right" valign="top"><a id="a76890b2f2990c4b6eff5ab34957362ab"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a76890b2f2990c4b6eff5ab34957362ab">getComment</a> () const noexcept</td></tr>
<tr class="memdesc:a76890b2f2990c4b6eff5ab34957362ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">getComment <br /></td></tr>
<tr class="separator:a76890b2f2990c4b6eff5ab34957362ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab43fbcb808b4e8984a8ac5568c8c49e4"><td class="memItemLeft" align="right" valign="top"><a id="ab43fbcb808b4e8984a8ac5568c8c49e4"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#ab43fbcb808b4e8984a8ac5568c8c49e4">getDomain</a> () const noexcept</td></tr>
<tr class="memdesc:ab43fbcb808b4e8984a8ac5568c8c49e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">getDomain <br /></td></tr>
<tr class="separator:ab43fbcb808b4e8984a8ac5568c8c49e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1389aee86b12fe9e62929caa8799704a"><td class="memItemLeft" align="right" valign="top"><a id="a1389aee86b12fe9e62929caa8799704a"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a1389aee86b12fe9e62929caa8799704a">getMaxAge</a> () const noexcept</td></tr>
<tr class="memdesc:a1389aee86b12fe9e62929caa8799704a"><td class="mdescLeft">&#160;</td><td class="mdescRight">getMaxAge <br /></td></tr>
<tr class="separator:a1389aee86b12fe9e62929caa8799704a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed5277e7667f8b38d1789bab44ee33fc"><td class="memItemLeft" align="right" valign="top"><a id="aed5277e7667f8b38d1789bab44ee33fc"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#aed5277e7667f8b38d1789bab44ee33fc">getPath</a> () const noexcept</td></tr>
<tr class="memdesc:aed5277e7667f8b38d1789bab44ee33fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">getPath <br /></td></tr>
<tr class="separator:aed5277e7667f8b38d1789bab44ee33fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba32d79bc73dda77b028f4355c4313ca"><td class="memItemLeft" align="right" valign="top"><a id="aba32d79bc73dda77b028f4355c4313ca"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#aba32d79bc73dda77b028f4355c4313ca">getSecure</a> () const noexcept</td></tr>
<tr class="memdesc:aba32d79bc73dda77b028f4355c4313ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">getSecure <br /></td></tr>
<tr class="separator:aba32d79bc73dda77b028f4355c4313ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3c11641e67f8c051eecd5d34f2199fd"><td class="memItemLeft" align="right" valign="top"><a id="ad3c11641e67f8c051eecd5d34f2199fd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#ad3c11641e67f8c051eecd5d34f2199fd">getVersion</a> () const noexcept</td></tr>
<tr class="memdesc:ad3c11641e67f8c051eecd5d34f2199fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">getVersion <br /></td></tr>
<tr class="separator:ad3c11641e67f8c051eecd5d34f2199fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a3f086e32413e23fdab53ffefa70b8b0e"><td class="memItemLeft" align="right" valign="top">static QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_cookie.html#a3f086e32413e23fdab53ffefa70b8b0e">splitCSV</a> (const QByteArray &amp;source)</td></tr>
<tr class="memdesc:a3f086e32413e23fdab53ffefa70b8b0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">splitCSV  <a href="#a3f086e32413e23fdab53ffefa70b8b0e">More...</a><br /></td></tr>
<tr class="separator:a3f086e32413e23fdab53ffefa70b8b0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class represents a HTTP Cookie. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aeb0f2cb5f7e8ef2fc7503663e29941c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb0f2cb5f7e8ef2fc7503663e29941c4">&#9670;&nbsp;</a></span>HttpCookie() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CWF_BEGIN_NAMESPACE HttpCookie::HttpCookie </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a cookie from a string. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>String as received in a HTTP Cookie2 header. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2037d1e3f9a6f65f0f3575df1cfcc200"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2037d1e3f9a6f65f0f3575df1cfcc200">&#9670;&nbsp;</a></span>HttpCookie() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpCookie::HttpCookie </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This is an overloaded constructor that receives a cookie's name and value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>: This is a reference to a QByteArray. It will change the cookie's name. </td></tr>
    <tr><td class="paramname">value</td><td>: This is a reference to a QByteArray. It will change the cookie's value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3f086e32413e23fdab53ffefa70b8b0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f086e32413e23fdab53ffefa70b8b0e">&#9670;&nbsp;</a></span>splitCSV()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; HttpCookie::splitCSV </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>splitCSV </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a id="aef937847dbebf7290e94b94afbb8f9a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef937847dbebf7290e94b94afbb8f9a1">&#9670;&nbsp;</a></span>toByteArray()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpCookie::toByteArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert this cookie to a string that may be used in a Set-Cookie header. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/<a class="el" href="httpcookie_8h_source.html">httpcookie.h</a></li>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/httpcookie.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Apr 8 2018 19:45:38 for C++ Web Framework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
